package frsf.cidisi.exercise.arql.situationCalculus;

import frsf.cidisi.faia.agent.Action;
import frsf.cidisi.faia.agent.ActionFactory;

import frsf.cidisi.exercise.arql.situationCalculus.actions.*;



public class ArqLogicoActionFactory extends ActionFactory {

    private static ArqLogicoActionFactory instance;

    private ArqLogicoActionFactory() {
    }

    public static ArqLogicoActionFactory getInstance() {
        if (instance == null) {
            instance = new ArqLogicoActionFactory();
        }
        return instance;
    }

    @Override
    protected String endActionString() {
        return "noAction";
    }

   
     @Override
   	 protected Action stringToAction(String stringAction) {
        Action actionObject = null;
        
	if (stringAction.equals("irAAragaey")) {
            actionObject = new IrAAragaey();
        } else if (stringAction.equals("irAAse")) {
            actionObject = new IrAAse();
        } else if (stringAction.equals("irABresol")) {
            actionObject = new IrABresol();
        } else if (stringAction.equals("irABulovoe")) {
            actionObject = new IrABulovoe();
        } else if (stringAction.equals("irACabe")) {
            actionObject = new IrACabe();
        } else if (stringAction.equals("irACenede")) {
            actionObject = new IrACenede();
        } else if (stringAction.equals("irAErgintone")) {
            actionObject = new IrAErgintone();
        } else if (stringAction.equals("irAIcaedur")) {
            actionObject = new IrAIcaedur();
        } else if (stringAction.equals("irAMixocu")) {
            actionObject = new IrAMixocu();
        } else if (stringAction.equals("irAPeregaey")) {
            actionObject = new IrAPeregaey();
        } else if (stringAction.equals("irAVinizaile")) {
            actionObject = new IrAVinizaile();
        } else if (stringAction.equals("juntarCofre")) {
            actionObject = new JuntarCofre();

        }
        
        return actionObject;
    }
}
